package com.ruoyi.base.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 t_product
 * 
 * @author YwaiX
 * @date 2024-10-25
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String productNo;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品描述 */
    @Excel(name = "产品描述")
    private String produceDescription;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 产品价格 */
    @Excel(name = "产品价格")
    private BigDecimal price;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal taxRate;

    /** 出库质检比例 */
    @Excel(name = "出库质检比例")
    private Long outCheckRatio;

    /** 单位id */
    @Excel(name = "单位id")
    private Long unitId;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private Long isActive;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductNo(String productNo) 
    {
        this.productNo = productNo;
    }

    public String getProductNo() 
    {
        return productNo;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProduceDescription(String produceDescription) 
    {
        this.produceDescription = produceDescription;
    }

    public String getProduceDescription() 
    {
        return produceDescription;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTaxRate(BigDecimal taxRate) 
    {
        this.taxRate = taxRate;
    }

    public BigDecimal getTaxRate() 
    {
        return taxRate;
    }
    public void setOutCheckRatio(Long outCheckRatio) 
    {
        this.outCheckRatio = outCheckRatio;
    }

    public Long getOutCheckRatio() 
    {
        return outCheckRatio;
    }
    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }
    public void setIsActive(Long isActive) 
    {
        this.isActive = isActive;
    }

    public Long getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productNo", getProductNo())
            .append("productName", getProductName())
            .append("produceDescription", getProduceDescription())
            .append("specification", getSpecification())
            .append("price", getPrice())
            .append("taxRate", getTaxRate())
            .append("outCheckRatio", getOutCheckRatio())
            .append("unitId", getUnitId())
            .append("isActive", getIsActive())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
